// 接口地址
export const api = window.$crud("standardplan");
export const detailedApi = window.$crud("standardplan/info");
export const formColmuns = [
  {
    label: "名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "类型",
    prop: "categorycode", // types
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "types",
    isNotAutoWrap: true,
  },
  {
    label: "状态",
    prop: "dealstatuscode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "status",
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  {
    label: "名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "类型",
    prop: "categoryCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "category_code",
    isNotAutoWrap: true,
  },
  {
    label: "发布日期",
    prop: "effectiveDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "施行日期",
    prop: "releaseDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "状态",
    prop: "dealStatusCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "status",
    isNotAutoWrap: true,
  },
  {
    label: "标签",
    prop: "label",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "label",
    isNotAutoWrap: true,
  },
];
export const formData = {
  name: "",
  categorycode: "",
  dealstatuscode: "",
  // above props is for querying
  labels: "",
  labelList: [],
};
let config = {
  api,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  name: "政策文件",
  width: 125,
};

export default config;
